CREATE PROCEDURE [dbo].[AllTimecardUsersNotUpToDate]
	@cutoffDate datetime
AS
BEGIN
	select * from Users uu where uu.UserID not in (
SELECT DISTINCT u.UserID
FROM Users AS u INNER JOIN
EntryLog AS e ON u.UserID = e.UserID
WHERE (e.EntryDate >= @cutoffDate) AND (u.IsActive = 1)
)
and uu.IsActive = 1

END

